package com.biscuit.page.basicservice.api.model.request.user;

import com.biscuit.common.base.BaseAMO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author biscuit
 * @createTime 2024/7/12 11:45
 */
@Getter
@Setter
public class UserUpdateAvatarAndNickNameAReq extends BaseAMO {

    @ApiModelProperty("用户ID")
    @NotNull(message = "用户ID为空")
    @Min(value = 0, message = "用户ID非法")
    private Long userId;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("用户昵称")
    @NotBlank(message = "用户昵称为空")
    private String nickName;

}
